<meta args="params"/>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="params">
    <table class="table table-bordered table-condensed table-middle">
        <tr>
            <td><code>url</code></td>
            <td>
                <input autocomplete="off" type="text" class="form-control" name="url" />
            </td>
        </tr>
        <tr>
            <td><code>code</code></td>
            <td>
                <input autocomplete="off" type="text" class="form-control" name="code" />
            </td>
        </tr>
        <tr>
            <td><code>title</code></td>
            <td>
                <input autocomplete="off" type="text" class="form-control" name="title" />
            </td>
        </tr>
    </table>
</form>
<script>
    S.getParams = function() {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve($form.node.serialize());
        })
        return deferred;
    }
</script>